<?php 
header("content-type:text/html;charset=utf8");
$dsn = "mysql:host=127.0.0.1;dbname=goods;charset=utf8";
$pdo = new PDO($dsn,"root","root");
$id = $_GET['id'];
$sql = "delete from import where id='$id'";
$res = $pdo->exec($sql);
if ($res) {
	echo "<script>alert('删除成功');location.href='show.php'</script>";
}else{
	echo "<script>alert('删除失败');location.href='delete.php'</script>";
}
 ?>